package cn.gson.crm.model.dao;


import cn.gson.crm.model.pojos.Check;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.transaction.annotation.Transactional;

public interface CheckDao  extends CrudRepository<Check,Integer> {
    //报价：删除审核表数据
    @Transactional
    @Modifying
    @Query(value = "delete from check_ where check_id =?1",nativeQuery = true)
    public void deleteByCheckId(Integer id);
}
